package com.mycompany.crm.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.mycompany.crm.base.BaseMapper;
import com.mycompany.crm.base.BaseService;
import com.mycompany.crm.dao.SaleChanceMapper;
import com.mycompany.crm.enums.DevResult;
import com.mycompany.crm.enums.StateStatus;
import com.mycompany.crm.query.SaleChanceQuery;
import com.mycompany.crm.utils.AssertUtil;
import com.mycompany.crm.utils.PhoneUtil;
import com.mycompany.crm.vo.SaleChance;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author jy
 * @version 1.0
 * @date 2022/1/7 14:14
 */
public interface SaleChanceService extends BaseMapper<SaleChance,Integer> {

    Map<String,Object> querySaleChanceByParams(SaleChanceQuery saleChanceQuery);

    void addSaleChance(SaleChance saleChance);

    void updateSaleChance(SaleChance saleChance);

    void deleteSaleChance(Integer[] ids);

    void updateSaleChanceDevResult(Integer id, Integer devResult);
}
